using System;
using System.Collections.Generic;
using System.Text;
using FastKnow.Model;

namespace FastKnow.IDAL
{
    interface ICategory
    {

        List<CategoryInfo> GetCategories();

        CategoryInfo GetCategoryById(int cid);

        List<CategoryInfo> GetChildren(int cid);

        List<CategoryInfo> GetSubCategories(int cid);

        CategoryInfo GetParent(int cid);

        void DeleteCategoryById(int cid);

        void UpdateCategory(CategoryInfo ci);
    }
}
